﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Tests
{
    /// <summary>
    /// Экстеншн-матоды чтобы писать дату в виде 10.Jan(2010);
    /// </summary>
    public static class DateTimeExtension
    {
        public static DateTime Jan(this int date, int year)
        {
            return new DateTime(year, 1, date);
        }

        public static DateTime Feb(this int date, int year)
        {
            return new DateTime(year, 2, date);
        }
        public static DateTime Mar(this int date, int year)
        {
            return new DateTime(year, 3, date);
        }
        public static DateTime Apr(this int date, int year)
        {
            return new DateTime(year, 4, date);
        }
        public static DateTime May(this int date, int year)
        {
            return new DateTime(year, 5, date);
        }
        public static DateTime Jun(this int date, int year)
        {
            return new DateTime(year, 6, date);
        }
        public static DateTime Jul(this int date, int year)
        {
            return new DateTime(year, 7, date);
        }
        public static DateTime Aug(this int date, int year)
        {
            return new DateTime(year, 8, date);
        }
        public static DateTime Sep(this int date, int year)
        {
            return new DateTime(year, 9, date);
        }
        public static DateTime Oct(this int date, int year)
        {
            return new DateTime(year, 10, date);
        }
        public static DateTime Nov(this int date, int year)
        {
            return new DateTime(year, 11, date);
        }
        public static DateTime Dec(this int date, int year)
        {
            return new DateTime(year, 12, date);
        }
    }
}
